package com.ecoolex.hotel.saas.core.dao;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.hotel.saas.core.mapper.PresaleCouponCategoryMapper;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PresaleCouponCategoryDAO extends PresaleCouponCategoryMapper {

    Long count(@Param("storeId") Integer storeId, @Param("name") String name);

    List<PresaleCouponCategory> query(@Param("storeId") Integer storeId, @Param("name") String name, @Param("page") Page page);
}